package com.warren.biz.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.warren.biz.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author warren
 * @since 2021-04-21
 */
public interface ProductService extends IService<Product> {
    /**
     * 查询物资详情
     * @param page
     * @param inNum
     * @return
     */
    IPage<Product> getDeatis(Page<Product> page, String inNum);

    /**
     * 查询物资库存
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<Product> findProductStocks(Page<Product> page, QueryWrapper<Product> queryWrapper);


    /**
     * 添加物资
     * @param product
     */
    void add(Product product);

    /**
     * 查询出库物资详情
     * @param page
     * @param outNum
     * @return
     */
    IPage<Product> getOutDetails(Page<Product> page, String outNum);

    /**
     * 查询发放得物资
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<Product> findOutEnableStocks(Page<Product> page, QueryWrapper<Product> queryWrapper);




}
